Python/VIT/sem-1/ex-09/3. Sum of elements of each tuple inside a list of tuples/sum of elements of each tuple inside a list of of tuples.py
l=[(1,2),(2,3),(3,4)]
s=[]
for i in range(len(l)):
t=l[i]
sum=0
for j in range(2):
sum=sum+t[j]
s.append(sum)
print(s)